package com.arsn.myf.resource.service.impl;

import com.arsn.myf.resource.entity.Attach;
import com.arsn.myf.resource.mapper.AttachMapper;
import com.arsn.myf.resource.service.AttachService;
import com.arsn.myf.resource.vo.AttachVO;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

/**
 * 附件服务实现层
 * @author zhongrj
 * @since 2021-12-07
 */
@Service
public class AttachServiceImpl extends ServiceImpl<AttachMapper, Attach> implements AttachService {

    /**
     * 自定义附件分页数据
     * @param page
     * @param attach
     * @return
     */
    @Override
    public IPage<AttachVO> selectPageAttachList(Page<AttachVO> page, AttachVO attach) {
        return baseMapper.selectPageAttachList(page, attach);
    }
}
